package com.lovo.service.impl;

import com.lovo.bean.User;
import com.lovo.dao.UserDAO;
import com.lovo.dao.impl.UserDAOImpl;
import com.lovo.service.UserService;

public class UserServiceImpl implements UserService {
    private UserDAO userDAO = new UserDAOImpl();
    @Override
    public User login(String name, String pwd) {
        return userDAO.findByNameAndPwd(name,pwd);
    }

    @Override
    public int delete(int id) {
        return 0;
    }

    public static void main(String[] args) {
        UserService userService = new UserServiceImpl();
        System.out.println(userService.login("admin","123456"));
    }
}
